<?php if (!empty($product)) { ?>
    <div class="module-tab tab-body">
        <div class="tab-inner tab-news">
            <p class="title-service-tab">
                <?php
                if (!empty($mcat)) {
                    //$count = count($categories);
                    foreach ($mcat as $vl) {
                        echo '<a title="' . $vl->title_seo . '" href="' . base_url() . $dataAlias[$vl->id]->alias . '.html">' . $vl->title . '</a> >>  ';
                    }
                }
                ?>
                <?php echo '<a title="' . $vl->title_seo . '" href="' . base_url() . $dataAliastt[$product->id]->alias . '.html">' . $product->title . '</a> '; ?>
            </p>
        </div>
    </div>
    <div class="body-main-content body-content">
        <script type="text/javascript" charset="utf-8">
			$(document).ready(function(){
				$("area[rel^='prettyPhoto']").prettyPhoto();
				
				$(".gallery:first a[rel^='prettyPhoto']").prettyPhoto({animation_speed:'normal',theme:'light_square',slideshow:3000, autoplay_slideshow: true});
				$(".gallery:gt(0) a[rel^='prettyPhoto']").prettyPhoto({animation_speed:'fast',slideshow:10000, hideflash: true});
		
				$("#details a[rel^='prettyPhoto']:first").prettyPhoto({
					custom_markup: '<div id="map_canvas" style="width:260px; height:265px"></div>',
					
				});
			});
			</script>
        <div id="details" class="tab-list-product details-tabs clearfix gallery" >
            <a href="<?php echo $product->image; ?>" rel="prettyPhoto" target="_blank"><img class="vico-large-img" title="<?php echo $product->title_seo; ?>" src="<?php echo $product->image; ?>" alt=""/></a>
            <div class="vico-content">
                <p class="vico-info">Thông tin cơ bản</p>
                <div><?php echo $product->fulltext; ?> </div>
                <div style="width: 100%">
                    <div id="fb-root"></div>
                    <div class="fb-like" data-href="<?php echo current_url(); ?>" data-layout="button_count" data-action="recommend" data-show-faces="true" data-share="true"></div>
                </div>
            </div>
        </div>
        <?php if (!empty($prollq)) { ?>
            <div class="vico-tab clearfix">
                <div class="vico-lienquan"></div>
                <div class="vico-table">
                    <ul class="clearfix">
                        <?php
                        foreach ($prollq as $sp) {
                            ?>
                            <li class="fancybox-li">
                                <img class="fancybox-product" alt="" src="<?php echo $sp->image; ?>"/>
                                <div class="fancybox-detail">
                                    <a class="link-fancy-a" href="<?php echo base_url() . $dataAliastt[$sp->id]->alias . '.html'; ?>" title=""></a>
                                    <!--a class="link-fancy-demo" href="<-?php echo base_url() . 'demo/' . $sp->model . '.html'; ?>" title=""></a-->
                                </div>
                                <div class="fancybox-opacity"></div>
                                <div class="product-description">
                                    <a href="<?php echo base_url() . $dataAliastt[$sp->id]->alias . '.html'; ?>" class="button"><?php echo $sp->title; ?></a>
                                </div>
                            </li>
                            <?php
                        }
                        ?>

                    </ul>
                </div>
            </div>
        <?php } ?>
        <div class=" vico-tab social-networking">
                <div class="fb-comments" data-href="<?php echo current_url(); ?>" data-width="680" data-numposts="5" data-colorscheme="light"></div>
            </div>
       
    </div>
    <?php
}?>